﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AiFrameDemo.Contacts.Lib.Views;
using AiFrameDemo.Lib.Model;

namespace AiFrameDemo.Contacts.Core.Views
{
    class Mapper
    {
        public static ContactListItem ToContactListItem(Contact contact)
        {
            return new ContactListItem()
                       {
                           Content = contact.Content,
                           DateTime = contact.DateTime.ToString()
                       };
        }
    }
}
